import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/reset.css'
import './assets/style/message.scss'

Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  el:'#app',
  router,
  render: h => h(App)
}).$mount('#app')

Vue.directive('title', {
     inserted: function (el, binding) {
       document.title = el.dataset.title
   }
})